package com.bnyy.bean.event;

import java.io.Serializable;

public class Event<T, K> implements Serializable {

    private T tag;
    private K data;

    public Event(T tag, K data) {
        this.tag = tag;
        this.data = data;
    }

    public Event(T tag) {
        this.tag = tag;
    }

    public T getTag() {
        return tag;
    }

    public void setTag(T tag) {
        this.tag = tag;
    }

    public K getData() {
        return data;
    }

    public void setData(K data) {
        this.data = data;
    }
}
